package com.priserve.retirement.entities;

// Generated Apr 27, 2013 9:50:19 PM by Hibernate Tools 4.0.0

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Assetclasses generated by hbm2java
 */
@Entity
@Table(name = "assetclasses", catalog = "priserve")
public class Assetclasses implements java.io.Serializable {

	private Long assetClassesId;
	private Assettype assettype;
	private String assetClassName;
	private String status;
	private Set<Assetclassescompany> assetclassescompanies = new HashSet<Assetclassescompany>(
			0);

	public Assetclasses() {
	}

	public Assetclasses(Assettype assettype, String assetClassName,
			String status, Set<Assetclassescompany> assetclassescompanies) {
		this.assettype = assettype;
		this.assetClassName = assetClassName;
		this.status = status;
		this.assetclassescompanies = assetclassescompanies;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "assetClassesId", unique = true, nullable = false)
	public Long getAssetClassesId() {
		return this.assetClassesId;
	}

	public void setAssetClassesId(Long assetClassesId) {
		this.assetClassesId = assetClassesId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "assetTypeId")
	public Assettype getAssettype() {
		return this.assettype;
	}

	public void setAssettype(Assettype assettype) {
		this.assettype = assettype;
	}

	@Column(name = "assetClassName")
	public String getAssetClassName() {
		return this.assetClassName;
	}

	public void setAssetClassName(String assetClassName) {
		this.assetClassName = assetClassName;
	}

	@Column(name = "status")
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "assetclasses")
	public Set<Assetclassescompany> getAssetclassescompanies() {
		return this.assetclassescompanies;
	}

	public void setAssetclassescompanies(
			Set<Assetclassescompany> assetclassescompanies) {
		this.assetclassescompanies = assetclassescompanies;
	}

}
